//import axios from '../axios'
import request from '@/utils/request'

/* 
 * 任务接口
 */


// 查询任务列表
export const getNodesLabels = (params) => {
    return request({
        url: 'task/getNodesLabels',
        method: 'get',
        params
    })
}

// 查询本月新增任务数
export const selectMonthTaskCount = (params) => {
    return request({
        url: 'task/selectMonthTaskCount',
        method: 'get',
        params
    })
}

// 查询成功和失败任务数
export const selectSuccessOrFailTaskCount = (params) => {
    return request({
        url: 'task/selectSuccessOrFailTaskCount',
        method: 'get',
        params
    })
}

// 查询任务总数
export const selectTaskCount = (params) => {
    return request({
        url: 'task/selectTaskCount',
        method: 'get',
        params
    })
}

// 查询特情影响信息列表
export const selectPageDirector = (params) => {
    return request({
        url: 'director/selectPage',
        method: 'get',
        params
    })
}
// 查询环境影响信息列表
export const selectPageTrain = (params) => {
    return request({
        url: 'train/selectPage',
        method: 'get',
        params
    })
}

// 根据任务ID获取详情信息
export const selectTaskDetails = (params) => {
    return request({
        url: 'task/selectTaskDetails',
        method: 'get',
        params
    })
}

